{if $js}
{foreach from=$js item=i}
<script type="text/javascript" src="{$i}"></script>
{/foreach}
{/if}